﻿{extend name="layout/layout" /}
<!--请在下方写此页面body相关内容-->
{block name="container"}
<header class="navbar-wrapper">
    <div class="navbar navbar-fixed-top">
        <div class="container-fluid cl"> <a class="logo navbar-logo f-l mr-10 hidden-xs" href="javascript:;"><?php echo $config['site_name']?></a> <a class="logo navbar-logo-m f-l mr-10 visible-xs" href="/aboutHui.shtml">H-ui</a>
            <span class="logo navbar-slogan f-l mr-10 hidden-xs"><?php echo $config['site_version']?></span>
            <a aria-hidden="false" class="nav-toggle Hui-iconfont visible-xs" href="javascript:;">&#xe667;</a>
            <nav id="Hui-userbar" class="nav navbar-nav navbar-userbar hidden-xs">
                <ul class="cl">
                    <li><?php echo $info['group_name']?></li>
                    <li><a href="javascript:;" onclick="show('个人中心','<?php echo url('admin/adminShow',['id'=>$info['id']])?>','1000','680')" title="个人中心" style="padding:0 0 0 10px">
                        <?php if($info['portrait']) {?>
                        <img class="avatar round size-S" src="<?php echo $info['portrait']?>">
                        <?php } else {?>
                        <i class="Hui-iconfont f-18">&#xe705;</i>
                        <?php }?></a>
                    </li>
                    <li class="dropDown dropDown_hover">
                        <a href="#" class="dropDown_A"><?php echo $info['username']?> <i class="Hui-iconfont">&#xe6d5;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="<?php echo url('login/logout'); ?>">退出</a></li>
                        </ul>
                    </li>
                    <!--<li id="Hui-msg"> <a href="#" title="消息"><span class="badge badge-danger">1</span><i class="Hui-iconfont" style="font-size:18px">&#xe68a;</i></a> </li>-->
                    <li id="Hui-skin" class="dropDown right dropDown_hover"><a href="javascript:;" class="dropDown_A" title="换肤"><i class="Hui-iconfont f-18">&#xe62a;</i></a>
                        <ul class="dropDown-menu menu radius box-shadow">
                            <li><a href="javascript:;" data-val="default" title="默认（黑色）">默认（黑色）</a></li>
                            <li><a href="javascript:;" data-val="blue" title="蓝色">蓝色</a></li>
                            <li><a href="javascript:;" data-val="green" title="绿色">绿色</a></li>
                            <li><a href="javascript:;" data-val="red" title="红色">红色</a></li>
                            <li><a href="javascript:;" data-val="yellow" title="黄色">黄色</a></li>
                            <li><a href="javascript:;" data-val="orange" title="橙色">橙色</a></li>
                        </ul>
                    </li>
                </ul>
            </nav>
        </div>
    </div>
</header>

<aside class="Hui-aside">
    <input runat="server" id="divScrollValue" type="hidden" value="" />
    <div class="menu_dropdown bk_2">
        <?php foreach($auth as $v){?>
        <dl id="menu-admin">
            <dt><i class="Hui-iconfont">&<?php echo $v['icon']?>;</i> <?php echo $v['rule_name']?><i class="Hui-iconfont menu_dropdown-arrow">&#xe6d5;</i></dt>
            <dd><ul>
                <?php foreach($v['sub'] as $v1){?>
                <li><a data-href="<?php echo url($v1['auth_rule'])?>" data-title="<?php echo $v1['rule_name']?>" href="javascript:void(0)"><?php echo $v1['rule_name']?></a></li>
                <?php } ?>
            </ul></dd>
        </dl>
        <?php } ?>
    </div>
</aside>

<div class="dislpayArrow hidden-xs"><a class="pngfix" href="javascript:void(0);" onClick="displaynavbar(this)"></a></div>

<section class="Hui-article-box">
    <div id="Hui-tabNav" class="Hui-tabNav hidden-xs">
        <div class="Hui-tabNav-wp">
            <ul id="min_title_list" class="acrossTab cl">
                <li class="active"><span title="首页" data-href="<?php echo url('index/main'); ?>">首页</span><em></em></li>
            </ul>
        </div>
        <div class="Hui-tabNav-more btn-group">
            <a id="js-tabNav-prev" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d4;</i></a>
            <a id="js-tabNav-next" class="btn radius btn-default size-S" href="javascript:;"><i class="Hui-iconfont">&#xe6d7;</i></a>
        </div>
    </div>
    <div id="iframe_box" class="Hui-article">
        <div class="show_iframe">
            <div style="display:none" class="loading"></div>
            <iframe scrolling="yes" frameborder="0" src="<?php echo url('index/main')?>"></iframe>
        </div>
    </div>
</section>
{/block}
<!--请在上方方写此页面body相关内容-->

<!--请在下方写此页面业务相关的脚本-->
{block name="js"}
<script type="text/javascript">
    /*
     参数解释：
     title	标题
     url	请求的url
     w		弹出层宽度（缺省调默认值）
     h		弹出层高度（缺省调默认值）
     */
    function show(title,url,w,h){
        layer_show(title,url,w,h);
    }

    /*个人信息*/
    function myselfinfo(){
        layer.open({
            type: 1,
            area: ['300px','200px'],
            fix: false, //不固定
            maxmin: true,
            shade:0.4,
            title: '查看信息',
            content: '<div>管理员信息</div>'
        });
    }

    /*
     全屏显示
     参数解释：
     title	标题
     url	请求的url
     */
    function full_show(title,url){
        var index = layer.open({
            type: 2,
            title: title,
            content: url
        });
        layer.full(index);
    }
</script>
{/block}
<!--/请在上方写此页面业务相关的脚本-->